package com.aliyun.messagemgt.repository;

import com.aliyun.messagemgt.domain.repository.ResourceNameRepository;
import com.aliyun.messagemgt.repository.mappers.ResourceNameMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Administrator
 */
@Service
public class ResourceNameMyBatisRepository implements ResourceNameRepository {

    @Autowired
    private ResourceNameMapper resourceNameMapper;
    /**
     * 根据ID获取资源名称
     *
     * @param nameField
     * @param tblName
     * @param idField
     * @param id
     * @return
     */
    @Override
    public String findResourceName(String nameField, String tblName, String idField, Integer id) {
        return resourceNameMapper.findResourceName(nameField, tblName, idField, id);
    }
}
